package com.ruoyi.system.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "应用版本信息创建参数")
public class TbAppVersionCreateDTO {

    // 自动解析字段
    @Schema(description = "应用包名")
    private String packageName;
    @Schema(description = "版本编号")
    private String versionName;

    @Schema(description = "版本号")
    private String versionCode;

    @Schema(description = "最低系统版本要求")
    private String minSystemVersion;

    @Schema(description = "SDK要求")
    private  String  sdkRequirement;
    @Schema(description = "开发商")
    private String devSupplier;

    // 图标相关
    @Schema(description = "图标大小字节")
    private byte[] iconBytes;
    @Schema(description = "图标路径")
    private String iconPath;

    /**
     * 手动输入数据
     */
   @Schema(description = "包存储路径")
   private String packageUrl;

    @Schema(description = "包类型(1=全量包 2=差分包)")
    private  Integer packageType ;

    @Schema(description = "版本描述")
    private String versionDesc;


    @Schema(description = "应用包hash  MD5")
    private String packageHash;


    @Schema(description = "原始字节大小（供后端 存储/校验）")
    private double fileSizeMB;
    @Schema(description = " 格式化后的 MB 字符串（供前端显示）")
    private String formattedSize;

    @Schema(description = "状态 1= 正常  0=下架")
    private Integer status = 1;


    @Schema(description = "是否强制更新")
    private Integer forceUpdate = 0;


}
